package net.heri.xmppchat.ui;

import com.google.inject.Inject;

import net.heri.xmppchat.R;
import net.heri.xmppchat.persistence.IXmppChatDBHelper;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.util.Log;

@SuppressLint("NewApi")
public class ChatSettingsFragment extends PreferenceFragment {

	private final String TAG = ChatSettingsFragment.class.getSimpleName();
	
	// Preference Keys
	private static final String KEY_SERVICE_ENABLED = "chat_service_enable";
	
	private Context mContext;
	
	//Testing injection
	@Inject
	private IXmppChatDBHelper mDbHelper;
	
	public ChatSettingsFragment() {
		super();
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		Log.i(TAG, "onCreate");
		
		super.onCreate(savedInstanceState);
		
		System.out.println(mDbHelper);
		
		mContext = getActivity();
		addPreferencesFromResource(R.xml.settings);
	}
}
